﻿<%@ Page Language="C#" MasterPageFile="~/Main/AdminPage.master" AutoEventWireup="true" CodeFile="NewsAdd.aspx.cs" Inherits="Main_NewsAdd" Title="添加新闻" %>

<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="border:dashed 2px #000099; width:680px; ">
        <asp:Label ID="LError" runat="server" ForeColor="Red"></asp:Label>
        <table style="text-align: left;font-size:14px">
            <tr>
                <td>
                    新闻标题：</td>
                <td>
                    <asp:TextBox ID="TBTitle" runat="server"></asp:TextBox>
                </td>
                <td>
                    副标题：</td>
                <td>
                    <asp:TextBox ID="txtsubtitle" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    作者：</td>
                <td>
                    <asp:TextBox ID="txtauthor" runat="server"></asp:TextBox>
                </td>
                <td>
                    头条：</td>
                <td>
                    <asp:RadioButton ID="rbnyes" runat="server" GroupName="toutiao" Text="是" />
                    <asp:RadioButton ID="rbnno" runat="server" GroupName="toutiao" Text="否" />
                </td>
            </tr>
            <tr>
                <td>
                    主题：</td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddltopic" runat="server" AppendDataBoundItems="True" 
                                onselectedindexchanged="ddtopic_SelectedIndexChanged" AutoPostBack="True">
                                <asp:ListItem Value="0">--请选择--</asp:ListItem>
                            </asp:DropDownList>
                        </ContentTemplate> 
                    </asp:UpdatePanel>                  
                </td>
                <td>
                    模块：</td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlmudule" runat="server" AppendDataBoundItems="True">
                                <asp:ListItem Value="0">--请选择--</asp:ListItem>
                            </asp:DropDownList>
                        </ContentTemplate> 
                    </asp:UpdatePanel>  
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    新闻内容：</td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    当前操作页： 
                    <asp:Label ID="LPageNow" runat="server"></asp:Label>
                    页 
                    <asp:Button ID="BLastPage" runat="server" OnClick="BLastPage_Click" Text="上页" />
                    &nbsp;<asp:DropDownList ID="DDLSelectPage" runat="server" AutoPostBack="True" 
                        OnSelectedIndexChanged="DDLSelectPage_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Button ID="BNextPage" runat="server" OnClick="BNextPage_Click" Text="下页" />
                    &nbsp;<asp:Button ID="BAddPage" runat="server" OnClick="BAddPage_Click" Text="添加" />
                    <asp:Button ID="BDeletePage" runat="server" OnClick="BDeletePage_Click" 
                        Text="删除" />
                    <br />
                    <ftb:freetextbox ID="TBBody" runat="server" 
                        buttonpath="../images/ftb/office2003/" Height="600px"></ftb:freetextbox>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    <asp:Button ID="BAddSubmit" runat="server" OnClick="BAddSubmit_Click" 
                        Text="确定" />
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

